/*******************************************************************************
 * Copyright (c) 2008 L.Carbonnaux.
 *******************************************************************************/
package org.lcx.taskvision.core.model;

import java.util.ArrayList;

/**
 * @author Laurent Carbonnaux
 */
public class TaskVisionQueryOption {
	
	private String tag;
	private ArrayList<String> listValues;
	private boolean negative=false;
	
	public TaskVisionQueryOption(String attribute){
		this.tag = attribute;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}
	
	public void addValue(String value){
		if(listValues==null) {
			listValues = new ArrayList<String>();
		}
		listValues.add(value);
	}

	public ArrayList<String> getListValues() {
		return listValues;
	}

	public void setListValues(ArrayList<String> listValues) {
		this.listValues = listValues;
	}

	public boolean isNegative() {
		return negative;
	}

	public void setNegative(boolean negative) {
		this.negative = negative;
	}

}
